package com.a100.equipment.mapper;

import com.a100.equipment.entity.EquArchives;
import com.a100.equipment.entity.po.PageEquCategoryPo;
import com.a100.equipment.entity.po.PageEquCategoryResponsePo;
import com.a100.equipment.entity.vo.UpdateDisableOrEnableArcvhives;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 设备档案 Mapper 接口
 * </p>
 *
 * @author index
 * @since 2021-12-02
 */
public interface EquArchivesMapper extends BaseMapper<EquArchives> {
    //根据条件获得设备总数
    long getEquArchivesTotal(PageEquCategoryPo pageEquCategoryPo);
    //根据条件获得设备每页数量
    List<PageEquCategoryResponsePo> getEquArchivesRecords(PageEquCategoryPo pageEquCategoryPo);
    //根据id查询单个设备
    PageEquCategoryResponsePo chooseEquArchivesById(Long equArchivesId);
    //停用或者启用设备
    boolean updateDisableenabledevice( UpdateDisableOrEnableArcvhives udea);
}
